{template 'web/_header'}
{template 'tabs'}
<div class="panel panel-info">
    <div class="panel-heading">筛选</div>
    <div class="panel-body">
        <form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
            <input type="hidden" name="c" value="site" />
            <input type="hidden" name="a" value="entry" />
            <input type="hidden" name="m" value="ewei_shop" />
            <input type="hidden" name="do" value="plugin" />
            <input type="hidden" name="p" value="commission" />
            <input type="hidden" name="method" value="agent" />
            <input type="hidden" name="op" value="agentshop" />
            <div class="form-group">
                <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">MID</label>
                <div class="col-sm-8 col-lg-9 col-xs-12">
                    <input type="text" class="form-control"  name="mid" value="{$_GPC['mid']}"/> 
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">会员信息</label>
                <div class="col-sm-8 col-lg-9 col-xs-12">
                    <input type="text" class="form-control"  name="realname" value="{$_GPC['realname']}" placeholder='可搜索昵称/名称/手机号'/> 
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">店铺类型</label>
                <div class="col-sm-8 col-lg-9 col-xs-12">
                       <select name='shoptype' class='form-control'>
                        <option value=''></option>
                        <option value='1' {if $_GPC['shoptype']=='1'}selected{/if}>银冠店</option>
                        <option value='2' {if $_GPC['shoptype']=='2'}selected{/if}>金冠店</option>
                        <option value='3' {if $_GPC['shoptype']=='3'}selected{/if}>钻石店</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">状态</label>
                <div class="col-sm-8 col-lg-9 col-xs-12">
                       <select name='isShop' class='form-control'>
                        <option value=''></option>
                        <option value='0' {if $_GPC['isShop']=='0'}selected{/if}>关闭</option>
                        <option value='1' {if $_GPC['isShop']=='1'}selected{/if}>开启</option>
                    </select>
                </div>
                <div class="col-sm-3 col-lg-2">
                    <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
                    <button type="submit" name="export" value="1" class="btn btn-primary">导出Excel</button>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">总数：{$total}</div>
    <div class="panel-body">
        <table class="table table-hover">
            <thead class="navbar-inner">
                <tr>
                    <th style='width:80px;'>店铺MID</th>
                    <th style='width:80px;'>店铺类型</th>
                    <th style='width:120px;'>粉丝</th>
                    <th style='width:80px;'>姓名</th>
                    <th style='width:110px;'>手机号码</th>
                    <th style='width:80px;'>状态</th>
                    <th style='width:200px;'>时间</th>
                </tr>
            </thead>
            <tbody>
                {loop $list $row}
                <tr>
                    <td>{$row['mid']}</td>
                    <td>
                     {if $row['shoptype']==0}{/if}
                     {if $row['shoptype']==1}银冠店{/if}
                     {if $row['shoptype']==2}金冠店{/if}
                     {if $row['shoptype']==3}钻石店{/if}
                    </td>
                    <td><img src='{$row['avatar']}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['nickname']}</td>
                    <td>{$row['realname']}</td>
                    <td>{$row['mobile']}</td>
                    <td>
                        {if $row['isShop']==1}
                        <span class="label label-success">开启</span>
                        {else}
                        <span class="label label-default">关闭</span>
                        {/if}
                    </td>
                    <td>{if $row['opentime']}开启时间：{php echo date('Y-m-d H:i',$row['opentime'])}{/if}<br/>
                    </td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {$pager}
    </div>
</div>
{template 'common/footer'}